<?php
require_once($application_folder."/controllers/navigator.php");
class Data extends navigator 
{

    function __construct()
    {
        parent::__construct(); 
    } 
    
    function getColumns(){
        
        $this->load->model('datam');
        
        $res['columns'] = $this->datam->getColumns();
        
        $this->core_site('data', $res, 'getColumns');
        
    }
    
    function getArticles(){
        
        $this->load->model('datam');
        
        $res['articles'] = $this->datam->getArticlesColsSubcolsWithDefaultMediaByTags(1, 3);
        
        $this->load->library('table');
        $this->core_site('data', $res, 'getArticles');
        
    }
    
    

}